home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
wgt_tp1.zip
/
WGT01.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-07-05
|
1KB
|
33 lines
{**************************************************************************
WordUp Graphics Toolkit
Demo File
This file demonstrates the initialization of the graphics system in TP
using the driver file VGA256.BGI. The graphics will merely be opened and
closed in this example. See INITGRAPH in the TP Library Reference or
Programmer's Guide for more information.
The WGT system is not required for this process.
**************************************************************************}
USES Graph;
VAR
grDriver, grMode : INTEGER;
BEGIN
{ First tell Turbo to install our graphics driver }
grDriver := INSTALLUSERDRIVER('VGA256',NIL);
{ Now give it a dummy value for the mode (only 1 is available with
this driver file. }
grMode := 0;
{ Now start up the graphics system (replace directory to show where
your VGA256.BGI file is located }
INITGRAPH(grDriver,grMode,'c:\tp\bgi');
{ Now shut it down as quickly as is was opened }
CLOSEGRAPH;
END.